<form nz-form [formGroup]="validateForm">
  <div class="form-inner">

    <nz-form-item nzFlex>
      <nz-form-label nzRequired class="label-width">公司名称</nz-form-label>
      <nz-form-control class="flex-1">
        <input nz-input formControlName="companyNameChs" placeholder="请输入公司名称">
        <nz-form-explain *ngIf="hasError('companyNameChs')">公司名称长度为2-20个字符!</nz-form-explain>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item nzFlex>
      <nz-form-label nzRequired class="label-width">公司英文名称</nz-form-label>
      <nz-form-control class="flex-1">
        <input nz-input formControlName="companyNameEng" placeholder="请输入公司英文名称">
        <nz-form-explain *ngIf="hasError('companyNameEng')">公司英文名称长度为2-50个字符!</nz-form-explain>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item nzFlex>
      <nz-form-label nzRequired class="label-width">公司代码</nz-form-label>
      <nz-form-control class="flex-1">
        <input nz-input formControlName="companyCode" placeholder="请输入公司代码">
        <nz-form-explain *ngIf="hasError('companyCode')">公司代码长度为2-20个字符!</nz-form-explain>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item nzFlex>
      <nz-form-label nzRequired class="label-width">公司类型</nz-form-label>
      <nz-form-control class="flex-1">
        <nz-select formControlName="companyType" nzPlaceHolder="请选择公司类型">
          <nz-option *ngFor="let item of companyTypes" [nzLabel]="item.baseTypeValue" [nzValue]="item.baseTypeValue"></nz-option>
        </nz-select>
        <nz-form-explain *ngIf="hasError('companyType')">公司类型不能为空!</nz-form-explain>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item nzFlex>
      <nz-form-label nzRequired class="label-width">别名</nz-form-label>
      <nz-form-control class="flex-1">
        <input nz-input formControlName="alias" placeholder="请输入别名">
        <nz-form-explain *ngIf="hasError('alias')">别名长度为2-20个字符!</nz-form-explain>
      </nz-form-control>
    </nz-form-item>

    <nz-form-item nzFlex>
      <nz-form-label nzRequired class="label-width">状态</nz-form-label>
      <nz-form-control class="flex-1">
        <nz-radio-group formControlName="isValid">
          <label nz-radio [nzValue]="true">有效</label>
          <label nz-radio [nzValue]="false">失效</label>
        </nz-radio-group>
        <nz-form-explain *ngIf="hasError('isValid')">状态不能为空!</nz-form-explain>
      </nz-form-control>
    </nz-form-item>

  </div>
</form>
